package org.biloxi.commands.endgame;

import java.util.List;

import org.biloxi.commands.CommandRepository;
import org.biloxi.commands.impl.CommandImpl;
import org.biloxi.model.mutable.GameStateMutable;
import org.biloxi.player.PlayerID;

public class EndGame extends CommandImpl<EndGame.Options, EndGame.Result> {

    static public class Options {
            public final List<PlayerID> winnerids;
            public Options(List<PlayerID> winnerids) {
                    this.winnerids = winnerids;
            }
    }
    
    static public class Result{
            public final List<PlayerID> winnerids;
            public Result(List<PlayerID> winnerid) {
                    this.winnerids = winnerid;
            }
    }

	public EndGame(CommandRepository cr) {
		super(cr);
	}

	@Override
	protected Result executeImpl(Options o, GameStateMutable gameState) {
		return new Result(o.winnerids);
	}


}
